class UserModel {
  String? avatar;
  int? id;
  String? mobile;
  String? nickname;

  UserModel({this.avatar, this.id, this.mobile, this.nickname});

  UserModel.fromJson(Map<String, dynamic> json) {
    avatar = json['avatar'];
    id = json['id'];
    mobile = json['mobile'];
    nickname = json['nickname'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['avatar'] = this.avatar;
    data['id'] = this.id;
    data['mobile'] = this.mobile;
    data['nickname'] = this.nickname;
    return data;
  }
}
